package org.nanfang.Suaizi;

import org.test14.Suai;

public class MainSuaizi {
    public static void main(String[] args) {
        Suaizi s = new Suaizi(1,100);
        Suaizi s1 = new Suaizi(101,900);
        Suaizi s2 = new Suaizi(901,1000);

        s.start();
        s1.start();
        s2.start();


        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

        int s4 = s.getZong()+s1.getZong()+s2.getZong();
        System.out.println("总数"+s4);
    }
}
